home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / tls / tls077.dss / usr / include / rpcsvc / mount.h / mount.h
Encoding:
C/C++ Source or Header  |  1995-03-16  |  1.8 KB  |  84 lines

  1. /*
  2.  * @(#)40  1.2  tnfs/head/rpcsvc/mount.h, scosysnfs, sco_3.0, 301FCS 4/28/94 14:25:13, SecureWare, Inc.
  3.  * Copyright (c) 1994
  4.  * All rights reserved.
  5.  */
  6. /*
  7.  *    System V NFS
  8.  *
  9.  *    Copyright 1991 INTERACTIVE Systems Corporation (ISC)
  10.  *    Copyright 1986-1989 Lachman Associates, Incorporated (LAI)
  11.  *
  12.  *    All Rights Reserved.
  13.  */
  14.  
  15. /*      @(#)mount.h    4.4 System V NFS source        */
  16.  
  17. /*      mount.h     1.3     90/07/19 4.1NFSSRC SMI     */
  18.  
  19. /*
  20.  * Copyright (c) 1988,1990 Sun Microsystems, Inc.
  21.  */
  22.  
  23. #ifndef _rpcsvc_mount_h
  24. #define _rpcsvc_mount_h
  25.  
  26. #define MOUNTPROG 100005
  27. #define MOUNTPROC_MNT         1
  28. #define MOUNTPROC_DUMP         2
  29. #define MOUNTPROC_UMNT         3
  30. #define MOUNTPROC_UMNTALL    4
  31. #define MOUNTPROC_EXPORT     5
  32. #define MOUNTPROC_EXPORTALL    6
  33. #define MOUNTVERS_ORIG        1
  34. #define MOUNTVERS         1
  35. #define MOUNTVERS_POSIX     2
  36. #if SEC_TNFS
  37. #define MOUNTVERS_TNFS        0x10001
  38. #endif
  39.  
  40. #ifndef svc_getcaller
  41. #define svc_getcaller(x) (&(x)->xp_raddr)
  42. #endif
  43.  
  44. bool_t xdr_path();
  45. bool_t xdr_fhandle();
  46. bool_t xdr_fhstatus();
  47. bool_t xdr_mountlist();
  48. bool_t xdr_exports();
  49. #ifdef notyet
  50. bool_t xdr_pathcnf();
  51. #endif /*notyet*/
  52.  
  53. struct mountlist {        /* what is mounted */
  54.     char *ml_name;
  55.     char *ml_path;
  56.     struct mountlist *ml_nxt;
  57. };
  58.  
  59. struct fhstatus {
  60.     int fhs_status;
  61.     fhandle_t fhs_fh;
  62. };
  63.  
  64. /*
  65.  * List of exported directories
  66.  * An export entry with ex_groups
  67.  * NULL indicates an entry which is exported to the world.
  68.  */
  69. struct exports {
  70.     dev_t          ex_dev;    /* dev of directory */
  71.     char         *ex_name;    /* name of directory */
  72.     struct groups     *ex_groups;    /* groups allowed to mount this entry */
  73.     struct exports     *ex_next;
  74.     short          ex_rootmap;    /* id to map root requests to */
  75.     short          ex_flags;    /* bits to mask off file mode */
  76. };
  77.  
  78. struct groups {
  79.     char        *g_name;
  80.     struct groups    *g_next;
  81. };
  82.  
  83. #endif /*!_rpcsvc_mount_h*/
  84.